home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / rsynth / src / parwave.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  4.3 KB  |  80 lines

  1. #define CASCADE_PARALLEL      1
  2. #define ALL_PARALLEL          2
  3. #define NPAR                 40
  4. #define IMPULSIVE             1
  5. #define NATURAL               2
  6. #define PI            3.1415927
  7.  
  8. #ifndef TRUE
  9. #define TRUE                  1
  10. #endif
  11.  
  12. #ifndef FALSE
  13. #define FALSE                 0
  14. #endif
  15.  
  16. typedef struct
  17.  {
  18.   long F0hz10;            /* Voicing fund freq in Hz                          */        
  19.   long AVdb;              /* Amp of voicing in dB,            0 to   70       */        
  20.   long F1hz;              /* First formant freq in Hz,        200 to 1300     */        
  21.   long B1hz;              /* First formant bw in Hz,          40 to 1000      */        
  22.   long F2hz;              /* Second formant freq in Hz,       550 to 3000     */        
  23.   long B2hz;              /* Second formant bw in Hz,         40 to 1000      */        
  24.   long F3hz;              /* Third formant freq in Hz,        1200 to 4999    */        
  25.   long B3hz;              /* Third formant bw in Hz,          40 to 1000      */        
  26.   long F4hz;              /* Fourth formant freq in Hz,       1200 to 4999    */        
  27.   long B4hz;              /* Fourth formant bw in Hz,         40 to 1000      */        
  28.   long F5hz;              /* Fifth formant freq in Hz,        1200 to 4999    */        
  29.   long B5hz;              /* Fifth formant bw in Hz,          40 to 1000      */        
  30.   long F6hz;              /* Sixth formant freq in Hz,        1200 to 4999    */        
  31.   long B6hz;              /* Sixth formant bw in Hz,          40 to 2000      */        
  32.   long FNZhz;             /* Nasal zero freq in Hz,           248 to  528     */        
  33.   long BNZhz;             /* Nasal zero bw in Hz,             40 to 1000      */        
  34.   long FNPhz;             /* Nasal pole freq in Hz,           248 to  528     */        
  35.   long BNPhz;             /* Nasal pole bw in Hz,             40 to 1000      */        
  36.   long ASP;               /* Amp of aspiration in dB,         0 to   70       */        
  37.   long Kopen;             /* # of samples in open period,     10 to   65      */        
  38.   long Aturb;             /* Breathiness in voicing,          0 to   80       */        
  39.   long TLTdb;             /* Voicing spectral tilt in dB,     0 to   24       */        
  40.   long AF;                /* Amp of frication in dB,          0 to   80       */        
  41.   long Kskew;             /* Skewness of alternate periods,   0 to   40 in sample#/2  */
  42.   long A1;                /* Amp of par 1st formant in dB,    0 to   80       */        
  43.   long B1phz;             /* Par. 1st formant bw in Hz,       40 to 1000      */        
  44.   long A2;                /* Amp of F2 frication in dB,       0 to   80       */        
  45.   long B2phz;             /* Par. 2nd formant bw in Hz,       40 to 1000      */        
  46.   long A3;                /* Amp of F3 frication in dB,       0 to   80       */        
  47.   long B3phz;             /* Par. 3rd formant bw in Hz,       40 to 1000      */        
  48.   long A4;                /* Amp of F4 frication in dB,       0 to   80       */        
  49.   long B4phz;             /* Par. 4th formant bw in Hz,       40 to 1000      */        
  50.   long A5;                /* Amp of F5 frication in dB,       0 to   80       */        
  51.   long B5phz;             /* Par. 5th formant bw in Hz,       40 to 1000      */        
  52.   long A6;                /* Amp of F6 (same as r6pa),        0 to   80       */        
  53.   long B6phz;             /* Par. 6th formant bw in Hz,       40 to 2000      */        
  54.   long ANP;               /* Amp of par nasal pole in dB,     0 to   80       */        
  55.   long AB;                /* Amp of bypass fric. in dB,       0 to   80       */        
  56.   long AVpdb;             /* Amp of voicing,  par in dB,      0 to   70       */        
  57.   long Gain0;             /* Overall gain, 60 dB is unity,    0 to   60       */        
  58.  } klatt_t, *klatt_ptr;
  59.  
  60. extern klatt_t def_pars;
  61.  
  62. extern void parwav  PROTO((klatt_ptr pars,short int *jwave));
  63. extern void pr_pars PROTO((void));
  64. extern int init_synth PROTO((int argc,char *argv[]));
  65.  
  66. extern int synthesis_model;
  67. extern int quiet_flag;
  68. extern int f0_flutter;
  69. extern long sigmx;
  70. extern long initsw;
  71. extern long warnsw;
  72. extern long dispt;
  73. extern long disptcum;
  74. extern long outsl;
  75. extern long samp_rate;
  76. extern long nfcascade;
  77. extern long glsource;
  78. extern long nspfr;
  79.  
  80.